﻿<%@ Page Language="C#" MasterPageFile="~/MembersHome/MembersHome.Master" AutoEventWireup="true" CodeBehind="findfollowers.aspx.cs" Inherits="TCS.Web.MembersHome.findfollowers" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function imgclick(a,b,c)
    {
      
        if(a.alt=="1")
        {
            
            a.src = c;
            
            a.alt="0";
          
        }
        else
        {
           
            a.src = b;
            a.alt="1";
            
        }
    }
    function BatchAttention()
    {
        var cks = document.getElementById("dv_weibo_manage_list").getElementsByTagName("input");
        var ids="";
        for(var i=0;i<cks.length;i++)
        {
            if(cks[i].type=="checkbox"&&cks[i].checked==true)
            {
                ids+=cks[i].value+",";
            }
        }
        ids=ids.substr(0,ids.length-1);
        
        $.post("/membershome/bathattention.aspx",{ids:""+ids+""},function(result){alert(result);});
    }
</script>

    <script src="../js/popup_layer.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <h2 class="content_title">
            粉丝挖掘</h2>
        <div class="search_if_if">
            <h3 class="title">
                查询条件</h3>
            <ul>
               <li><em>关键字：</em> <span>
                    <label>
                        </label> 
                   <asp:TextBox  ID="txtKeys" class="text_zi" runat="server"></asp:TextBox></span> <span class="ps"></span>
                </li>
                 <li class="radio_q"><em>类型：</em> <span>
                    <asp:RadioButton ID="rbtAll" runat="server" Checked="true" GroupName="LEIXING" /> <label>全部</label></span> <span>
                       <asp:RadioButton ID="rbtOriginal" runat="server" GroupName="LEIXING" /> <label>原创</label></span> <span>
                            <asp:RadioButton ID="rbtReproduced" runat="server" GroupName="LEIXING" /> <label>转发</label></span> </li>
                <li class="radio_q">
					<em>地区：</em>
					<span>
						<asp:DropDownList ID="dropProvinces" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="dropProvinces_SelectedIndexChanged"></asp:DropDownList>
					</span>
					<span>
						<asp:DropDownList ID="dropCity" runat="server"></asp:DropDownList>
					</span>
				</li>
                
               
               <li class="op_end">
					<span><asp:Button CssClass="search_btn_weibo_manage" ID="btnSearch" 
                        runat="server" onclick="btnSearch_Click" /></span>
					<span class="clear_search_if"><asp:LinkButton ID="lbtnClearSearchKey" 
                        runat="server" Text="清除查询条件" onclick="lbtnClearSearchKey_Click"></asp:LinkButton></span>
					<span class="search_data" style="display:none">有<i><asp:Literal ID="ltrRetcount" runat="server"></asp:Literal></i>条记录符合查询条件</span>
				</li>
            </ul>
        </div>
        <div class="checkbox_con">
            <span>
                <input type="checkbox" class="check_all" /><label>全选</label></span> <span>
                    <input type="button" class="del_all" /></span> <span>
                        <input type="button" class="gz_all" onclick="BatchAttention()" /></span>
        </div>
        <ul class="weibo_manage_list" id="dv_weibo_manage_list">
          <asp:Repeater ID="rptList" runat="server" onitemdatabound="rptList_ItemDataBound">
            <ItemTemplate>
            
            <li>
				<span class="check_b"><input type="checkbox" value='<%#Eval("user.id")%>' /></span>
				<span class="head_pic"><a href='http://www.weibo.com/<%# Eval("user.id") %>' target="_blank"><img src='<%#Eval("user.profile_image_url") %>' /></a></span>
				<div class="weibo_man_nr weibo_man_nr_bg" style="width:692px;">
				 <input id="hfID" runat="server" type="hidden" value='<%# Eval("id")%>' />
					<p><a href='http://www.weibo.com/<%# Eval("user.id") %>' target="_blank" class="name"><span><%#Eval("user.name")%></span><i class='<%#Eval("user.verified").ToString()=="true"?"v":""%>'></i>：</a>
					<span class="weibo_time"><%#StatusFormat(Eval("text").ToString())%> <%#Convert.ToString(Eval("thumbnail_pic")) == "" ? "" : "<a ><img id='status_img" + Eval("id") + "' src='" + Convert.ToString(Eval("thumbnail_pic")) + "' onclick='imgclick(this,\"" + Eval("thumbnail_pic") + "\",\"" + Eval("bmiddle_pic") + "\")' alt='1' ></a>"%></span>
					<span class="more">(<a href='http://api.t.sina.com.cn/<%# Eval("user.id") %>/statuses/<%# Eval("id") %>'
                                    target="_blank">查看原文</a>)</span></p>
					
					
					<div class="q_in" style='display:<%#Convert.ToString(Eval("retweeted_status"))!=""?"block":"none"%>'>
						<a href='http://www.weibo.com/<%# Eval("retweeted_status.user.id") %>' target="_blank" class="name"><span><%#Eval("retweeted_status.user.name")%></span><i class="v"></i>：</a>
						<p><%#Eval("retweeted_status.text")%> <span class="more">(<a href='http://api.t.sina.com.cn/<%# Eval("retweeted_status.user.id") %>/statuses/<%# Eval("retweeted_status.id") %>'
                                    target="_blank">查看原文</a>)</span>
						
						<%#Convert.ToString(Eval("retweeted_status.thumbnail_pic")) == "" ? "" : "<a><img src='" + Convert.ToString(Eval("retweeted_status.thumbnail_pic"))  + "' onclick='imgclick(this,\"" + Eval("retweeted_status.thumbnail_pic") + "\",\"" + Eval("retweeted_status.bmiddle_pic") + "\")' alt='1'></a>"%>
						</p>
					</div>
                    

					<p class="op">
						<span>
							<a <a href='http://api.t.sina.com.cn/<%# Eval("user.id") %>/statuses/<%# Eval("id") %>'
                                    target="_blank"><%# SinaDateConvert(Eval("created_at"))%></a>
							来自<em><%#Eval("source")%></em>
						</span>
						<span class="op_r"> <%#GetCount(Eval("id").ToString())%> <a href="" class="op_ico">操作</a></span>
					</p>
				</div>
			</li>
            </ItemTemplate>
          </asp:Repeater> 
            <li>
            <webdiyer:aspnetpager Visible="false" id="AspNetPager1" runat="server" PageSize="9" AlwaysShow="True" OnPageChanged="AspNetPager1_PageChanged" ShowCustomInfoSection="Left" CustomInfoSectionWidth="20%" ShowPageIndexBox="always" PageIndexBoxType="DropDownList"
    ></webdiyer:aspnetpager>
    <asp:LinkButton ID="lbtnNext" OnClick="lbtnNext_Click" ToolTip="1" runat="server" Text="更多内容"></asp:LinkButton>	
            </li>
           
        </ul>
    
   
</asp:Content>
